home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-28 | 447 b | 21 lines | [TEXT/KEEN] |
- #$CommaString :
- #Select a bunch of enums, and run Hawk on the front selection
- # -optionally select the entire enum body from '{' to '}' with Balance
- #Leave "Show std out" and "Select all of stdout" checked
- #-generates strings, one for each term
-
- { gsub(/=[^,]*/, " ")
- gsub(/=(.)*$/, " ")
- gsub(/[,{};]/, " ")
- for ( k = 1; k <= NF; k++)
- case[++N] = $k
-
- }
-
- END {
- for (k = 1; k <= N; ++k)
- {
- print "\"\",\t/*", case[k], "*/"
- }
- }
-